import $http from "./requst";
// 登陆
export const login = data =>
  $http({ url: "/domesticadmin/Login/login", method: "post", data });
//获取验证码
export const Sendsms = data =>
  $http({ url: "/common/Sendsms", method: "post", data });
// 用户列表
export const User = data =>
  $http({ url: "/domesticadmin/User", method: "post", data });
// 保洁员列表
export const Technician = data =>
  $http({ url: "/domesticadmin/Cleaning", method: "post", data });
// 套餐列表
export const Package = data =>
  $http({ url: "/domesticadmin/Package", method: "post", data });
// 新增编辑保洁员
export const operateSave = data =>
  $http({
    url: "/domesticadmin/Cleaning/operateSave",
    method: "post",
    data
  });
// 选择套餐
export const checkPackage = data =>
  $http({
    url: "/domesticadmin/Cleaning/checkPackage",
    method: "post",
    data
  });
// 删除保洁员
export const delTech = data =>
  $http({
    url: "/domesticadmin/Cleaning/del",
    method: "post",
    data
  });
// 新增编辑套餐
export const packSave = data =>
  $http({
    url: "/domesticadmin/Package/operateSave",
    method: "post",
    data
  });
// 删除套餐
export const packDel = data =>
  $http({
    url: "/domesticadmin/Package/del",
    method: "post",
    data
  });
// 轮播图列表
export const Banner = data =>
  $http({
    url: "/domesticadmin/Banner",
    method: "post",
    data
  });
// 轮播图删除
export const BannerDel = data =>
  $http({
    url: "/domesticadmin/Banner/delete",
    method: "post",
    data
  });
// 轮播图新增编辑
export const bannerSave = data =>
  $http({
    url: "/domesticadmin/Banner/operateSave",
    method: "post",
    data
  });

//编辑显示保洁员
export const editShowTech = data =>
  $http({ url: "/domesticadmin/Cleaning/editShow", method: "post", data });

//编辑显示套餐
export const editShowPack = data =>
  $http({ url: "/domesticadmin/Package/editShow", method: "post", data });
//其他设置
export const update = data =>
  $http({ url: "/domesticadmin/Otherset/update", method: "post", data });

//订单列表
export const order = data =>
  $http({ url: "/domesticadmin/User/order", method: "post", data });
//订单详情
export const orderDetails = data =>
  $http({ url: "/domesticadmin/User/orderDetails", method: "post", data });
//提现列表
export const Withdrawal = data =>
  $http({ url: "/domesticadmin/Withdrawal", method: "post", data });
//提现审核
export const withdrawalExamine = data =>
  $http({
    url: "/domesticadmin/Withdrawal/withdrawalExamine",
    method: "post",
    data
  });

// 扣费
export const chargingMoney = data =>
  $http({
    url: "/domesticadmin/Cleaning/chargingMoney",
    method: "post",
    data
  });
// 举报列表
export const orderReport = data =>
  $http({
    url: "/domesticadmin/User/orderReport",
    method: "post",
    data
  });
// 举报处理
export const handleReportorderReport = data =>
  $http({
    url: "/domesticadmin/User/handleReport",
    method: "post",
    data
  });
// 其他设置回显
export const showSet = data =>
  $http({
    url: "/domesticadmin/Otherset/show",
    method: "post",
    data
  });
// 资金明细
export const fundDetails = data =>
  $http({
    url: "/domesticadmin/Cleaning/fundDetails",
    method: "post",
    data
  });
// 订单总揽
export const statistics = data =>
  $http({
    url: "/domesticadmin/User/statistics",
    method: "post",
    data
  });
